﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%namespace YouHP.Model%>
<%namespace YouHP.Utility%>
<%namespace YouHP.Atom%>
<%template _header%>
<link rel="stylesheet" href="/support/common/jquery-ui.css" type="text/css" />
<link rel="stylesheet" href="/support/common/impromptu.css" type="text/css" />
<script type="text/javascript"" src="/support/common/jquery.js"></script>
<script type="text/javascript"" src="/support/common/impromptu.js"></script>
<script type="text/javascript"" src="/support/common/ui.core.js"></script>
<script type="text/javascript"" src="/support/common/ui.datepicker.js"></script>
<script type="text/javascript"" src="/support/common/ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="/support/common/ui.draggable.js"></script> 
<script type="text/javascript" src="/support/common/ui.resizable.js"></script> 
<script type="text/javascript" src="/support/common/ui.dialog.js"></script> 
<script type="text/javascript" src="/support/swfobject/open-flash-chart.js"></script>

<div class="layout-cols2">
<%template _memmenu%>
	<div class="pannelcontent">

		<div class="pcontent">
		<div class="panneldetail">
	     <%template _memrecordermenu%>
	     	
			<div class="pannelbody">
        <div class="box">
            <div class="caption">
                治疗图表
            </div>
            <div class="content" style="text-align:center;margin:0 auto">
                <div id="Treatmentchart1"></div>
                <script type="text/javascript">
                    var g_sTreatmentUrl="/Pages/Alpha/TreatmentHistory/TreatmentHistory.aspx"
                    swfobject.embedSWF("/support/swfchart/open-flash-chart.swf", "Treatmentchart1", "740", "250","9.0.0", "expressInstall.swf",{'id':'1','flashready':'OnTreatmentFlashReady'},{wmode: "transparent"});
                </script>
                <script type="text/javascript" src="/support/swfobject/Treatment.js"></script>
            </div>
        </div>
	    
	    <div class="box">
	        <div class="caption">
	             治疗
	        </div>
	        <div class="content">
	            
	            <br />
	            <p>
	                <table><tr><td>

	                    <a href="javascript:AddTreatmentHistory();" class="yellowbutton">添加西药方</a>
	               
	                </td>
	                
	                <td width="20px"></td>
	                
	                <td>
	                <a href="javascript:AddPresHistory('{diseaseId}');" class="yellowbutton">添加中药方</a>
	                
	                </td></tr></table>  
	            </p>
	            <br />
	            <p><b>正在使用的治疗</b></p>
	            <br />
	            <table class="tbl-data">
	                <col style="width:120px;" />
	                <col style="width:160px;" />
	                <col style="width:160px;" />
	                <thead><tr>
	                    <th>治疗</th>
	                    <th>剂量</th>
	                    <th>目的</th>
	                    <th></th>
	                </tr></thead>
	                <tbody>
	                    <%csharp%>
	                    foreach(TreatmentHistoryInfo item in UsingTreatmentList)
	                    {
	                    <%/csharp%>
	                    <tr>
	                        <%csharp%>
	                             TempUrl = "/TreatmentHistory/List.aspx?trmid=" + item.TreatmentId; 
	                        <%/csharp%>
	                        <td><a href="{this.GetUrl(TempUrl)}">{item.TreatmentName}</a></td>
	                        <td>{item.DataValue}&nbsp;&nbsp;{item.Unit}/{item.Frequency}</td>
	                        <td>
	                            <%csharp%>TempUrl = Constants.GetTreatmentPurpose(item.UsePurpose);<%/csharp%>
	                            {TempUrl}
	                        </td>
	                        <td>                     
	                            <a href="javascript:StopTreatment('{item.TreatmentId}')"><font color="blue">停止使用</font></a>&nbsp;&nbsp;&nbsp;	                        
	                           	                        
	                            <a href="javascript:ChangeDosage('{item.TreatmentId}')"><font color="blue">更新剂量</font></a>&nbsp;&nbsp;&nbsp;
	                            <%csharp%>
	                                 TempUrl = "/TreatmentHistory/List.aspx?trmid=" + item.TreatmentId; 
	                            <%/csharp%>	                        
                                <a href="{this.GetUrl(TempUrl)}"><font color="blue">查看历史记录</font></a>
                            </td>
	                    </tr>
	                    <%csharp%> } <%/csharp%>
	                    <%csharp%>
	                    foreach(PrescriptionHistoryInfo item in _listCurUsingPrescList){
	                    <%/csharp%>
	                    <tr>
	                        <%csharp%>
	                             TempUrl = "/TreatmentHistory/PrescriptionList.aspx?prescriptionid=" + item.PrescriptionId; 
	                        <%/csharp%>
	                        <td><a href="{this.GetUrl(TempUrl)}">{item.PrescriptionName}</a></td>
	                        <td></td>
	                        <td>
	                        </td>
	                        <td>
	                            <%csharp%>
	                                TempUrl = "/TreatmentHistory/HistoryStop.aspx?type=1&trmid=" + item.PrescriptionId;
	                            <%/csharp%>		                        
	                                <a href="{this.GetUrl(TempUrl)}"><font color="blue">停止使用</font></a>&nbsp;&nbsp;&nbsp;
	                                
	                            <%csharp%>
	                                TempUrl = "/TreatmentHistory/ModifyPrescription.aspx?prescriptionid=" + item.PrescriptionId;
	                            <%/csharp%>		                        
	                                <a href="{this.GetUrl(TempUrl)}"><font color="blue">修改方剂</font></a>&nbsp;&nbsp;&nbsp
	                            <%csharp%>
	                                 TempUrl = "/TreatmentHistory/PrescriptionList.aspx?prescriptionid=" + item.PrescriptionId; 
	                            <%/csharp%>	                        
                                <a href="{this.GetUrl(TempUrl)}"><font color="blue">查看历史记录</font></a>
                            </td>
	                    </tr>
	                    <%csharp%> } <%/csharp%>
	                </tbody>
	            </table>
	            <br />
	            <p><b>停止使用的治疗</b></p>
	            <br />
	            <table class="tbl-data">
	                <col style="width:120px;" />
	                <col style="width:160px;" />
	                <col style="width:160px;" />
	                <thead><tr>
	                    <th>治疗</th>
	                    <th>停止使用原因</th>
	                    <th>停止日期</th>
	                    <th>操作</th>
	                </tr></thead>
	                <tbody>
	                    <%csharp%>
	                    foreach(TreatmentHistoryInfo item in StoppedTreatmentList)
	                    {
	                    <%/csharp%>
	                    <tr>
	                        <%csharp%>
	                             TempUrl = "/TreatmentHistory/List.aspx?trmid=" + item.TreatmentId; 
	                        <%/csharp%>
	                        <td><a href="{this.GetUrl(TempUrl)}">{item.TreatmentName}</a></td>
	                        <td>
	                            <%csharp%>TempUrl = Constants.GetStopReason(item.StopReason);<%/csharp%>
	                            {TempUrl}
	                        </td>
	                        <td>{item.EndDate.ToString("yyyy-MM-dd")}</td>
	                        <td>                    
	                            <a href="javascript:StartTreatment('{item.TreatmentId}', 1, '恢复使用')"><font color="blue">恢复使用</font></a>&nbsp;&nbsp;&nbsp;
	                            <%csharp%>
	                                 TempUrl = "/TreatmentHistory/List.aspx?trmid=" + item.TreatmentId; 
	                            <%/csharp%>	                        
                                <a href="{this.GetUrl(TempUrl)}"><font color="blue">查看历史记录</font></a>
                            </td>
	                    </tr>
	                    <%csharp%> } <%/csharp%>
	                    
	                    <%csharp%>
	                    foreach(PrescriptionHistoryInfo item in _listCurNoUsingPrescList){
	                    <%/csharp%>
	                    <tr>
	                        <%csharp%>
	                             TempUrl = "/TreatmentHistory/List.aspx?type=1&trmid=" + item.PrescriptionId; 
	                        <%/csharp%>
	                        <td><a href="{this.GetUrl(TempUrl)}">{item.PrescriptionName}</a></td>
	                        <td></td>
	                        <td>
	                        </td>
	                        <td align="left">
	                            <%csharp%>
	                                TempUrl = "/TreatmentHistory/PresHistoryStart.aspx?prescriptionid=" + item.PrescriptionId;
	                            <%/csharp%>		                        
	                                <a href="{this.GetUrl(TempUrl)}"><font color="blue">恢复使用</font></a>&nbsp;&nbsp;&nbsp;
	                            <%csharp%>
	                                 TempUrl = "/TreatmentHistory/PrescriptionList.aspx?prescriptionid=" + item.PrescriptionId; 
	                            <%/csharp%>	                        
                                <a href="{this.GetUrl(TempUrl)}"><font color="blue">查看历史记录</font></a>
                            </td>
	                    </tr>
	                    <%csharp%> } <%/csharp%>

	                </tbody>
	            </table>
	            <br />
	            <br />
    	        <table >
    	            <tr><td>
                    <span>
                        <font color="blue">提示：如果本站没有提供您所需要录入的治疗信息，请发送邮件本站！Email：</font>
                        <a href="mailto:service@youhp.com"><font color="blue">service@youhp.com</font></a>
                    </span>
                    </td></tr>
                </table>
	        </div>
	    </div>
	</div>
	</div>
	</div>
	</div>
	
</div>
<div id="DIALOG"><iframe FRAMEBORDER=0 SCROLLING=NO ></iframe></div>
<script type="text/javascript" src="/support/Alpha/Js/treatmenthistory/index.js"></script>
<%template _footer%>